home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5116 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: micro.internexus.net!not-for-mail
  2. From: master@micro.internexus.net (Laszlo Vecsey)
  3. Newsgroups: comp.lang.c++
  4. Subject: Using C libraries with reserved words
  5. Date: 2 Feb 1996 16:08:51 GMT
  6. Organization: The Internet Nexus
  7. Message-ID: <4etcuj$jcb@micro.internexus.net>
  8. NNTP-Posting-Host: micro.internexus.net
  9. X-Newsreader: TIN [UNIX 1.3 BETA-950824-color PL0]
  10.  
  11. I have a compiled C library that I'm linking in to my C++ program (I 
  12. wrapped the includes with extern C { }) The problem is that the 
  13. precopmiled library has variables like 'class' and such which cannot be 
  14. changed, I don't have the source. Is there anything I can do in this case?
  15.  
  16.  
  17. -- 
  18. (define(RSA m e n)(list->string(u(r(s(string->list m))e n))))(define(u a)(if(>
  19. a 0)(cons(integer->char(modulo a 256))(u(quotient a 256)))'()))(define(s a)(if
  20. (null? a)0(+(char->integer(car a))(* 256(s(cdr a))))))(define(r a x n)(cond((=
  21. 0 x)1)((even? x)(modulo(expt(r a(/ x 2)n)2)n))(#t(modulo(* a(r a(1- x)n))n))))
  22.  
  23.            "SGI and Linux both run Motif and X11.  They both compile c++
  24.                 cleanly (using gnu g++). They're the same!"
  25.  
  26.